/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Supplier HIPAA Member1</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getSupplierHIPAAMember1()
 * @model extendedMetaData="name='SupplierHIPAA_._member_._1'"
 * @generated
 */
public enum SupplierHIPAAMember1 implements Enumerator {
	/**
	 * The '<em><b>331L00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_331L00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_331L00000N(0, "_331L00000N", "331L00000N"),

	/**
	 * The '<em><b>332G00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332G00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_332G00000N(1, "_332G00000N", "332G00000N"),

	/**
	 * The '<em><b>332H00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332H00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_332H00000N(2, "_332H00000N", "332H00000N"),

	/**
	 * The '<em><b>332S00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332S00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_332S00000N(3, "_332S00000N", "332S00000N"),

	/**
	 * The '<em><b>332U00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332U00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_332U00000N(4, "_332U00000N", "332U00000N"),

	/**
	 * The '<em><b>335U00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_335U00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_335U00000N(5, "_335U00000N", "335U00000N"),

	/**
	 * The '<em><b>333600000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_333600000N_VALUE
	 * @generated
	 * @ordered
	 */
	_333600000N(6, "_333600000N", "333600000N"),

	/**
	 * The '<em><b>335V00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_335V00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_335V00000N(7, "_335V00000N", "335V00000N"),

	/**
	 * The '<em><b>335E00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_335E00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_335E00000N(8, "_335E00000N", "335E00000N");

	/**
	 * The '<em><b>331L00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>331L00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_331L00000N
	 * @model literal="331L00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _331L00000N_VALUE = 0;

	/**
	 * The '<em><b>332G00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332G00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332G00000N
	 * @model literal="332G00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _332G00000N_VALUE = 1;

	/**
	 * The '<em><b>332H00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332H00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332H00000N
	 * @model literal="332H00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _332H00000N_VALUE = 2;

	/**
	 * The '<em><b>332S00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332S00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332S00000N
	 * @model literal="332S00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _332S00000N_VALUE = 3;

	/**
	 * The '<em><b>332U00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332U00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332U00000N
	 * @model literal="332U00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _332U00000N_VALUE = 4;

	/**
	 * The '<em><b>335U00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>335U00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_335U00000N
	 * @model literal="335U00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _335U00000N_VALUE = 5;

	/**
	 * The '<em><b>333600000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>333600000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_333600000N
	 * @model literal="333600000N"
	 * @generated
	 * @ordered
	 */
	public static final int _333600000N_VALUE = 6;

	/**
	 * The '<em><b>335V00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>335V00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_335V00000N
	 * @model literal="335V00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _335V00000N_VALUE = 7;

	/**
	 * The '<em><b>335E00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>335E00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_335E00000N
	 * @model literal="335E00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _335E00000N_VALUE = 8;

	/**
	 * An array of all the '<em><b>Supplier HIPAA Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final SupplierHIPAAMember1[] VALUES_ARRAY =
		new SupplierHIPAAMember1[] {
			_331L00000N,
			_332G00000N,
			_332H00000N,
			_332S00000N,
			_332U00000N,
			_335U00000N,
			_333600000N,
			_335V00000N,
			_335E00000N,
		};

	/**
	 * A public read-only list of all the '<em><b>Supplier HIPAA Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<SupplierHIPAAMember1> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Supplier HIPAA Member1</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SupplierHIPAAMember1 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SupplierHIPAAMember1 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Supplier HIPAA Member1</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SupplierHIPAAMember1 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SupplierHIPAAMember1 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Supplier HIPAA Member1</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SupplierHIPAAMember1 get(int value) {
		switch (value) {
			case _331L00000N_VALUE: return _331L00000N;
			case _332G00000N_VALUE: return _332G00000N;
			case _332H00000N_VALUE: return _332H00000N;
			case _332S00000N_VALUE: return _332S00000N;
			case _332U00000N_VALUE: return _332U00000N;
			case _335U00000N_VALUE: return _335U00000N;
			case _333600000N_VALUE: return _333600000N;
			case _335V00000N_VALUE: return _335V00000N;
			case _335E00000N_VALUE: return _335E00000N;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private SupplierHIPAAMember1(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //SupplierHIPAAMember1
